package com.fc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fc.entity.ShoppingCar;
import com.fc.entity.input.DeleteBatchInput;
import com.fc.entity.input.ProductQueryInput;
import com.fc.entity.input.ShoppingCarInput;
import com.fc.entity.input.ShoppingCarQueryInput;
import com.fc.entity.output.ShoppingCarOutput;
import com.fc.entity.query.PageQuery;
import com.fc.service.baseService.BaseService;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author 
 * @since 2024-11-07
 */
public interface ShoppingCarService extends BaseService<ShoppingCar> {

    /**
     * 新增
     */
    boolean add(ShoppingCarInput input);

    /**
     * 分页模糊查询
     */
    IPage<ShoppingCarOutput> getPage(PageQuery query, ShoppingCarQueryInput input);

    /**
     * 修改
     */
    boolean renew(ShoppingCarInput input);

    /**
     * 删除
     */
    boolean del(DeleteBatchInput input);

    /**
     * 购物车商品数据加减
     */
    boolean addNum(ShoppingCarInput input);
}
